using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;

namespace Nirvana.AB
{
    public class BundleUtils
    {
        /// <summary>
        /// 资源路径根节点
        /// </summary>
        public const string AssetsRoot = "Assets/NirvanaToolkit/Core/ABBuilder/Preview/ResourcesAssets/";

        public static string GetPlatformName()
        {
            var target = EditorUserBuildSettings.activeBuildTarget;
            switch (target)
            {
                case BuildTarget.Android:
                    return "Android";
                case BuildTarget.iOS:
                    return "IOS";
                case BuildTarget.StandaloneWindows:
                case BuildTarget.StandaloneWindows64:
                    return "Windows";
            }

            return null;
        }
    }
}